home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Controls / Visual Basic Controls.iso / vbcontrol / cm11 / readme.txt < prev    next >
Encoding:
Text File  |  1999-06-13  |  1.4 KB  |  55 lines

  1.                 CM11.OCX
  2.  
  3.  
  4.             Short description
  5.  
  6.  
  7.  
  8. Object CM11 from CM11.OCX has next possibilities :
  9.  
  10. Communication through X-10
  11.  
  12. Properties :
  13.     
  14.     Init        - serial port for CM11 
  15.                After seting this properties will be execution initialization interface CM11
  16.     Address        - Address of X-10 element  ("A4" à)          As String
  17.     Value        - value for Preset Dim                As Integer    
  18.     Command    - Command from next List  (for this moment)    As String
  19.                 "ON"        = On
  20. "OFF"        = Off
  21. "ALLON"    = All Lights On
  22. "ALLUOFF"    = All Units Off
  23. "ALLOFF"    = All Lights Off
  24. "DIM"        = Dim
  25. "BRG"        = Bright
  26. "DNL"        = Download all bytes from Address to CM 11 memory
  27.             from address 0
  28. "SETTIME"    = Current Time from Computer is send to CM11
  29. "GETTIME"    = Request to CM11 for Read set Time 
  30.             Result is  String after InputX10 Event
  31.             Time in format interface CM11 it means 14 bytes
  32.  
  33.     After seting this properties will be Command performed
  34.  
  35.       Example :
  36.     
  37. CM111.Address = "A3"
  38. CM111.Value = 0
  39. CM111.Command = "ON"
  40.  
  41. Event :
  42.  
  43.     X10Input (Buffer As String)
  44.         After receive  command from X-10 string contens :
  45.             "A 2"    = selected element A2
  46.             "AON"    = Command "ON" for House Code "A"
  47.  
  48.  
  49.     Result (Code As Integer)
  50.  
  51.     Code = 0 - Command performed OK
  52.                  1 - Command not performed
  53.                  9 - Init command can not open defined port
  54.                   8 -  After "Init" - communication with interface CM11 not O.K.
  55.